import type { User } from "../user/type";

export type MessageList = {
    sender: User,
    receiver: User,
    list: Array<Message>;
}

export type Message = {
    id: string,
    sessionId: string,
    senderId: string
    content: string,
    sendTime: string
}

export type Session = {
    sessionId: string,
    senderId: string,
    receiverId: string
}

export type SessionInfo = {
    sessionId: string,
    receiver: User,
    latestMessage: Message
}